<template>
  <div class="wrap">
    <el-container>
      <el-aside width="200px">
        <el-menu
          router
          default-active="/home/user"
          class="el-menu-vertical-demo"
          background-color="#545c64"
          text-color="#fff"
          active-text-color="#ffd04b"
        >
          <el-menu-item index="/home/index">
            <i class="el-icon-s-home"></i>
            <span slot="title">首页</span>
          </el-menu-item>
          <el-submenu index="/home/auths">
            <template slot="title">
              <i class="el-icon-setting"></i>
              <span>权限管理</span>
            </template>
            <el-menu-item
              ><router-link class="qa" to="/home/auths/cdauth">
                菜单管理
              </router-link>
            </el-menu-item>
            <el-menu-item>
              <router-link class="qa" to="/home/auths/jsauth"
                >角色设置</router-link
              >
            </el-menu-item>
          </el-submenu>
          <el-submenu index="/home/system">
            <template slot="title">
              <i class="el-icon-setting"></i>
              <span>系统监控</span>
            </template>
            <el-menu-item>
              <router-link class="qa" to="/home/system/fwsystem"
                >服务监控</router-link
              >
            </el-menu-item>
            <el-menu-item>
              <router-link class="qa" to="/home/system/dlsystem"
                >登录日志</router-link
              >
            </el-menu-item>
          </el-submenu>
          <el-submenu index="/home/user">
            <template slot="title">
              <i class="el-icon-setting"></i>
              <span>文章管理</span>
            </template>
            <el-menu-item>
              <router-link class="qa" to="/home/user/pzuser"
                >配置设置</router-link
              >
            </el-menu-item>
            <el-menu-item>
              <router-link class="qa" to="/home/user/bquser"
                >标签管理</router-link
              >
            </el-menu-item>
          </el-submenu>
        </el-menu>
      </el-aside>
      <el-container>
        <el-header>
          <el-breadcrumb separator="/">
            <el-breadcrumb-item :to="{ path: '/home/index' }"
              >首页</el-breadcrumb-item
            >
          </el-breadcrumb>
        </el-header>
        <el-main>
          <router-view />
        </el-main>
      </el-container>
    </el-container>
  </div>
</template>

<script>
export default {};
</script>

<style>
.wrap,
.el-container,
.el-menu {
  width: 100%;
  height: 100%;
}

.el-header,
.el-footer {
  background-color: #b3c0d1;
  color: #333;
  text-align: center;
  line-height: 60px;
}

.el-aside {
  background-color: #d3dce6;
  color: #333;
}

.el-main {
  background-color: #e9eef3;
  color: #333;
}

.qa {
  text-decoration: none;
  color: #fff;
}
</style>